{
  //interface接口，只能用于定义对象类型，type更灵活
  interface my {
    name:string,
    age:number,
    goTo:(route:string)=>void
  }
  let me:my={
    name:"yx",
    age:18,
    goTo(route){
      console.log(route)
    }
  }
  console.log(me)
}